#include <iostream>
#include <cstring>
using namespace std;
int main(){
	short int a,a1=-32768,a2=32767;
	long b,b1=-2147483648,b2=2147483647;
	int c;
	long long d=0b111111111111111111111111111111111111111111111111;
	float e;
	double f=1.25;
	long double g;
	cout<<"short int: "<<sizeof(a)<<" "<<a1<<"~"<<a2<<" "<<"a1-1="<<sizeof(a1)<<" "<<"a2+1="<<a2+(short int)1<<endl;
	cout<<"long: "<<sizeof(b)<<" "<<b1<<"~"<<b2<<" "<<"b1-1="<<b1-1<<" "<<"b2+1="<<b2+(short int)1<<endl;
	cout<<"int: "<<sizeof(c)<<endl;
	cout<<"long long: "<<sizeof(d)<<endl;
	cout<<"float: "<<sizeof(e)<<endl;
	cout<<"double: "<<sizeof(f)<<endl;
	cout<<"long double:"<<sizeof(g)<<endl;
	cout<<d<<" "<<(int)d<<endl;
	printf("%lld %x %o",d,d,d);
	return 0;
}
